#include "dri_seg.h"
#include "dri_spi.h"
#include "dri_systick.h"
static uint8_t duan_data[]={0x3F,0x06,0x5B,0x4F, 0x66,0x6D,0x7D, 0x07,0x7F,0x6F};
static uint8_t wei_data[]={0x08,0x04,0x02,0x01};
void dri_74hc595_init(void)
{
	dri_spi2_init();
}
void dri_seg_dispaly(uint8_t wei,uint8_t duan)
{
	dri_spi2_senddata(wei_data[wei]);
	dri_spi2_senddata(duan_data[duan]);
	GPIO_ResetBits(GPIOB,GPIO_Pin_12);
	dri_systick_ms(1);
	GPIO_SetBits(GPIOB,GPIO_Pin_12);
}